package com.pactera.asmp.server.error;

import com.pactera.asmp.server.common.exception.GenericError;

public enum ProjectModuleError implements GenericError {

    PROJECT_NAME_EXIST_ERROR(1000,"项目模块已经存在"),
    PROJECT_NAME_NOT_EXIST_ERROR(1001,"项目模块不存在"),
    ;

    private int code;
    private final String message;

    ProjectModuleError(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
